AC_INIT(guile-openai, 0.2)
AC_CONFIG_SRCDIR([openai])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([color-tests -Wall -Wno-portability foreign])
AM_SILENT_RULES([yes])

AC_PATH_PROG([GUILE], [guile])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env])
AC_CONFIG_FILES([openai/config.scm])

GUILE_PKG([3.0])
GUILE_PROGS

GUILE_MODULE_REQUIRED([ice-9 colorized])
GUILE_MODULE_REQUIRED([gnutls])
GUILE_MODULE_REQUIRED([json])
GUILE_MODULE_REQUIRED([pict base64])

PKG_CHECK_MODULES([MAGICKWAND], [MagickWand])
PKG_CHECK_VAR([MAGICKWAND_LIBDIR], [MagickWand], [libdir])
PKG_CHECK_VAR([MAGICKWAND_LIBNAME], [MagickWand], [libname])

AC_OUTPUT
